<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>显示所有用户</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <css file="__PUBLIC__/css/base.css"/>
	<jquery />
	<script src="__DATA__/validate.min.js" language="javascript"></script>
	<head>
<body>
<div class='now_path'>
		<strong>您现在的位置是:</strong>
		会员管理>添加会员组
</div>
<div id="success_box">所有的选项都填写正确</div>
<div id="error_box"></div>
<form action='__WEB__/admin/member/add_memtype_exe' method='post' name='membertype'>
    <table class='table3'>
    	<tr>
    		<th colspan='2' style=' text-align:center; font-size:16px;'>添加会员组</th>
    	</tr>
    	<tr>
    		<th>会员组名称</th>
			<td><input type='text' name='rname' /><span class='desc'>请注意使用英文字母</span></td>
    	</tr>
		<tr>
    		<th>会员组描述</th>
			<td><input type='text' name='title' /><span class='desc'>使用中文会更好</span></td>
    	</tr>
		<tr>
    		<th>是否启用</th>
			<td><input type='radio' name='status' value='1' checked='checked'/>启用
				<input type='radio' name='status' value='0' />停止
			</td>
    	</tr>
		<tr><input type='hidden' name='isadmin' value='0'/>
    		<td colspan='2' class='sub'><input type='submit' class='button4' value='增加' name='submit'/></td>
    	</tr>
    </table>
</form>
<script type='text/javascript'>
		var validator = new FormValidator('membertype', [{
		    name: 'rname',
		    display: '会员组名称',    
		    rules: 'required|alpha'
		}], function(errors, event) {
		    var SELECTOR_ERRORS = $('#error_box');
		        SELECTOR_SUCCESS = $('#success_box');
			    if (errors.length > 0) {
			        SELECTOR_ERRORS.empty();
			        for (var i = 0, errorLength = errors.length; i < errorLength; i++) {
			            SELECTOR_ERRORS.append(errors[i].message + '<br />');
			        }
			        SELECTOR_SUCCESS.css({ display: 'none' });
			        SELECTOR_ERRORS.fadeIn(200);
					return false;
			    } else {
			        SELECTOR_ERRORS.css({ display: 'none' });
			        SELECTOR_SUCCESS.fadeIn(200);
					return true;
			    }
		});
	</script>
</body>
</html>
